<!DOCTYPE html>
<html>
<head>
<title>文件上传</title>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="Author" content="larry" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="../../statics/common/cascader/cascader/cascader.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/layui.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/autocomplete.css">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/soulTable.css">
<link rel="stylesheet" type="text/css" href="../../statics/plugins/ztree/css/metroStyle/metroStyle.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/common.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/font-awesome-4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/list-search-table.css">
<!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/layui-soul-table/docs/soulTable.css" media="all"/>-->
<script type="text/javascript" src="../../statics/plugins/jquery.min.js"></script>
<script type="text/javascript" src="../../statics/common/lib/vue.min.js"></script>
<script type="text/javascript" src="../../statics/plugins/ztree/jquery.ztree.all.min.js"></script>
<script type="text/javascript" src="../../statics/common/layui/layui.all.js"></script>
<script type="text/javascript" src="../../statics/common/js/axios.min.js"></script>
<script type="text/javascript" src="../../statics/common/js/xm-select.js"></script>
<script type="text/javascript" src="../../statics/js/common.js"></script>
<script type="text/javascript" src="../../statics/js/upload.js"></script>
<script type="text/javascript" src="../../statics/common/step/steps.js"></script>
<link rel="stylesheet" href="../../statics/css/jxcPublicAll.css"  media="all">
<link href="../../statics/common/photoviewer/dist/photoviewer.css" rel="stylesheet">
<link rel="stylesheet" href="../../statics/common/step/steps.css">
<!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.css" media="all">-->
<link rel="stylesheet" href="../../statics/js/modules/cropper/cropper.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/css/viewer.min.css">
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.min.js"></script>-->
<script src="../../statics/js/modules/cropper/cropper.min.js"></script>
<script src="../../statics/common/photoviewer/dist/photoviewer.js"></script>
<script src="../../statics/common/layui/autocomplete.js"></script>
<script  src="../../statics/js/modules/viewer/viewer.min.js"></script>
<script src="../../statics/common/print-js/print.min.js"></script>
<link rel="stylesheet" type="text/css" href="../../statics/common/print-js/print.min.css">
<script type="text/javascript" src="../../statics/common/xmselect/xm-select.js"></script>
<script type="text/javascript" src="../../statics/js/searchview.js"></script>
<script type="text/javascript" src="../../statics/js/tableedit.js"></script>

<!--<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.0&type=webgl&ak=eo4XeZhRKHsQ0NOe6u6NkKscmRsk416B"></script>-->

<!-- 引入组件库 -->
<link rel="stylesheet" type="text/css" href="../../statics/css/index.css">






</head>
<body class="ren-body">
<div id="rrapp" v-cloak>
	<blockquote class="layui-elem-quote quoteBox">
		<form class="layui-form">
			<div class="layui-inline">
				<a class="layui-btn layui-btn-normal" @click="addConfig">云存储配置</a>
			</div>
			<div class="layui-inline">
				<button type="button" class="layui-btn" id="upload">
					<i class="layui-icon">&#xe67c;</i>上传文件
				</button>
			</div>
			<div class="layui-inline">
				<a class="layui-btn layui-btn-danger layui-btn-normal delBatch">批量删除</a>
			</div>
		</form>
	</blockquote>
	<table class="layui-hide" id="grid" lay-filter="grid"></table>


	<!-- 表单 -->
	<form v-show="showForm" class="layui-form ren-form" id="editForm">
		<div class="layui-form-item">
			<label class="layui-form-label">存储类型</label>
			<div class="layui-input-block">
				<input type="radio" name="type" v-model="config.type" lay-filter="type" value="1" title="七牛">
				<input type="radio" name="type" v-model="config.type" lay-filter="type" value="2" title="阿里云">
				<input type="radio" name="type" v-model="config.type" lay-filter="type" value="3" title="腾讯云">
			</div>
		</div>
		<div v-if="config.type == 1">
			<div class="layui-form-item">
				<label class="layui-form-label">域名</label>
				<div class="layui-input-block">
					<input type="text" lay-verify="required" v-model="config.qiniuDomain" autocomplete="off" placeholder="七牛绑定的域名" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">路径前缀</label>
				<div class="layui-input-block">
					<input type="text" v-model="config.qiniuPrefix" autocomplete="off" placeholder="不设置默认为空" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">AccessKey</label>
				<div class="layui-input-block">
					<input type="text" lay-verify="required" v-model="config.qiniuAccessKey" autocomplete="off" placeholder="七牛AccessKey" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">SecretKey</label>
				<div class="layui-input-block">
					<input type="text" lay-verify="required" v-model="config.qiniuSecretKey" autocomplete="off" placeholder="七牛SecretKey" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">空间名</label>
				<div class="layui-input-block">
					<input type="text" lay-verify="required" v-model="config.qiniuBucketName" autocomplete="off" placeholder="七牛存储空间名" class="layui-input">
				</div>
			</div>
		</div>
		<div v-if="config.type == 2">
			<div class="layui-form-item">
				<label class="layui-form-label">域名</label>
				<div class="layui-input-block">
					<input type="text" lay-verify="required" v-model="config.aliyunDomain" autocomplete="off" placeholder="阿里云绑定的域名" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">路径前缀</label>
				<div class="layui-input-block">
					<input type="text" v-model="config.aliyunPrefix" autocomplete="off" placeholder="不设置默认为空" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">EndPoint</label>
				<div class="layui-input-block">
					<input type="text" lay-verify="required" v-model="config.aliyunEndPoint" autocomplete="off" placeholder="阿里云EndPoint" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">AccessKeyId</label>
				<div class="layui-input-block">
					<input type="text" lay-verify="required" v-model="config.aliyunAccessKeyId" autocomplete="off" placeholder="阿里云AccessKeyId" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">AccessKeySecret</label>
				<div class="layui-input-block">
					<input type="text" lay-verify="required" v-model="config.aliyunAccessKeySecret" autocomplete="off" placeholder="阿里云AccessKeySecret" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">BucketName</label>
				<div class="layui-input-block">
					<input type="text" lay-verify="required" v-model="config.aliyunBucketName" autocomplete="off" placeholder="阿里云BucketName" class="layui-input">
				</div>
			</div>
		</div>
		<div v-if="config.type == 3">
			<div class="layui-form-item">
				<label class="layui-form-label">域名</label>
				<div class="layui-input-block">
					<input type="text" lay-verify="required" v-model="config.qcloudDomain" autocomplete="off" placeholder="腾讯云绑定的域名" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">路径前缀</label>
				<div class="layui-input-block">
					<input type="text" v-model="config.qcloudPrefix" autocomplete="off" placeholder="不设置默认为空" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">AppId</label>
				<div class="layui-input-block">
					<input type="text" lay-verify="required" v-model="config.qcloudAppId" autocomplete="off" placeholder="腾讯云AppId" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">SecretId</label>
				<div class="layui-input-block">
					<input type="text" lay-verify="required" v-model="config.qcloudSecretId" autocomplete="off" placeholder="腾讯云SecretId" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">SecretKey</label>
				<div class="layui-input-block">
					<input type="text" lay-verify="required" v-model="config.qcloudSecretKey" autocomplete="off" placeholder="腾讯云SecretKey" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">BucketName</label>
				<div class="layui-input-block">
					<input type="text" lay-verify="required" v-model="config.qcloudBucketName" autocomplete="off" placeholder="腾讯云BucketName" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">Bucket所属地区</label>
				<div class="layui-input-block">
					<input type="text" lay-verify="required" v-model="config.qcloudRegion" autocomplete="off" placeholder="如：sh（可选值 ，华南：gz 华北：tj 华东：sh）" class="layui-input">
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit lay-filter="saveOrUpdate">确定</button>
			</div>
		</div>
	</form>

</div>

<script src="../../statics/js/modules/oss/oss.js?_${.now?long}"></script>
</body>
</html>